<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - 页面未找到</title>
    <style>
        /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            overflow: hidden;
        }

        .container {
            text-align: center;
            color: #333;
        }

        h1 {
            font-size: 150px;
            font-weight: bold;
            color: #ff6f61;
            margin-bottom: 20px;
            position: relative;
            animation: shake 0.5s ease-in-out infinite alternate;
        }

        p {
            font-size: 24px;
            margin-bottom: 30px;
            color: #555;
        }

        a {
            text-decoration: none;
            background-color: #ff6f61;
            color: white;
            padding: 12px 24px;
            border-radius: 50px;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        a:hover {
            background-color: #e65a50;
            transform: scale(1.1);
        }

        /* 动画效果 */
        @keyframes shake {
            0% {
                transform: rotate(-1deg);
            }
            100% {
                transform: rotate(1deg);
            }
        }

        /* 背景星光效果 */
        .stars {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -1;
        }

        .star {
            position: absolute;
            width: 3px;
            height: 3px;
            background: white;
            border-radius: 50%;
            opacity: 0;
            animation: twinkle 2s infinite;
        }

        @keyframes twinkle {
            0%, 100% {
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
        }

        /* 随机生成星星 */
        .star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
        .star:nth-child(2) { top: 25%; left: 50%; animation-delay: 0.5s; }
        .star:nth-child(3) { top: 40%; left: 80%; animation-delay: 1s; }
        .star:nth-child(4) { top: 60%; left: 30%; animation-delay: 1.5s; }
        .star:nth-child(5) { top: 80%; left: 70%; animation-delay: 2s; }
    </style>
</head>
<body>
    <!-- 星光背景 -->
    <div class="stars">
        <div class="star"></div>
        <div class="star"></div>
        <div class="star"></div>
        <div class="star"></div>
        <div class="star"></div>
    </div>

    <!-- 主体内容 -->
    <div class="container">
        <h1>404</h1>
        <p>抱歉，您访问的页面不存在。</p>
        <a href="/">返回首页</a>
    </div>

    <!-- 简单的交互提示 -->
    <script>
        document.querySelector('a').addEventListener('click', function (event) {
            event.preventDefault();
            alert('正在返回首页...');
            window.location.href = '/';
        });
    </script>
</body>
</html>